package com.qfxl.common.entity.base;


public enum RestCommEnum {


    LOGIN_ERROR(1300, "用户名或密码错误！"),
    LOGIN_ACCOUNT_NULL_ERROR(1301, "用户名不能为空"),
    LOGIN_PASSWORD_NULL_ERROR(1302, "密码不能为空"),
    REQ__TREE_LEVEL_ERROR(1404, "数据等级结构错误！"),
    REQ_TREE_F_FIND_ERROR(1403, "查询父级错误！"),
    REQ_TOKEN_ERROR(1402, "token错误！"),
    REQ_TOKEN_NO_ERROR(1400, "登录错误！"),
    PAR_ENCRYPT_ERROR(1504, "没有加密或加密错误"),
    PAR_CIPHERTEXT_NULL(1503, "加密密文不能为空"),
    PAR_NULL(1502, "参数不能为空！"),
    PAR_INVALID(1501, "操作失败"),
    FIND_DB_ERROR(1600, "查询失败"),
    ERROR(500, "操作失败"),
    SUCCESS(200, "操作成功");
    private String message;
    private Integer code;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    private RestCommEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

}
